package com.example.chenhaosblog.test;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import static com.example.chenhaosblog.Jpush.JpushUtils.SendPushUniqueDevice;

/**
 * 极光推送测试
 *
 */
@RestController
@RequestMapping("/testPush")
public class testPush {

    @RequestMapping("/testPush")
    @ResponseBody
    public void testPush(String  id){
        try {
            SendPushUniqueDevice(" 您有新的挂号信息XXXX（挂号的最后4位）请及时处理","西内科诊室2，您有新挂号ZJHxxxxxxxx0005,请及时处理，发送时间：当前发送时间",id);
        }
        catch (Exception e) {
        }
    }

}
